function AllReady() {
    var mstform = Ext.getCmp('TendEval');
    var user_bdmc = mstform.queryById("user_bdmc");
    console.log('代码生效');
    var userID = $appinfo.userID;
    mstform.getItem('PhidPc').userSetMustInput(false);
    if (otype == 'add') {  //新增时
        console.log(otype, userID);
        mstform.getItem('user_tbr').setValue(userID)
        BatchBindCombox([mstform.getItem('user_tbr')])

    }
    // mstform.getItem('PhidPc').userSetMustInput(false);
    user_bdmc.addListener("helpselected", function () {
        let user_bdmc = mstform.getItem('user_bdmc').getValue()
        console.log(user_bdmc);

        execServer(
            "getTraceProjectInfo",
            { phid: user_bdmc },
            function (res) {
                console.log(res);

                if (res.count > 0) {
                    var obj = JSON.parse(res.data);
                    console.log(obj);
                    const datas = obj[0].extendObjects
                    const title = `${datas.sheng_name || ''}-${datas.city_name || ''}-${datas.qvxian_name || ''}`
                    mstform.getItem('user_xmmc1').setValue(obj[0].extendObjects.u_xmbmc)
                    mstform.getItem('user_xmyzmc').setValue(obj[0].extendObjects.u_yzdw)
                    mstform.getItem('GSituation').setValue(obj[0].extendObjects.u_xmjk)
                    if (datas.u_sccyllb == '6870000000000085') {
                        mstform.getItem('user_xmszd').setValue(datas.u_szgb)
                    } else {
                        mstform.getItem('user_xmszd').setValue(title)
                    }

                }
            }
        );
    });



}




